package vip.sone.turbine;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.turbine.stream.EnableTurbineStream;
import org.springframework.cloud.stream.converter.CompositeMessageConverterFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.integration.support.converter.ConfigurableCompositeMessageConverter;

/**
 * 说明: Finchley.SR2版本好像不能用MQ聚合数据了 暂时没有找到解决方案 2019-04-15
 *
 * @author winstone jianwenzhen@qq.com
 * @date 19-4-13 下午4:20
 */
@EnableTurbineStream
@EnableDiscoveryClient
@SpringBootApplication
public class TurbineAMQPApplication {

	public static void main(String[] args) {
		SpringApplication.run(TurbineAMQPApplication.class, args);
	}

//	@Bean
//	public ConfigurableCompositeMessageConverter integrationArgumentResolverMessageConverter(CompositeMessageConverterFactory factory) {
//		return new ConfigurableCompositeMessageConverter(factory.getMessageConverterForAllRegistered().getConverters());
//	}
}
